package com.jyy.prefabricated.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jyy.prefabricated.enums.BaseTeamEnum;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 附件表(AccessoryFile)实体类
 *
 * @author makejava
 * @since 2021-05-14 10:16:11
 */
@Data
public class AccessoryFile implements Serializable {
    private static final long serialVersionUID = -91869078691021131L;

    private Integer id;
    /**
     * 关联id
     */
    private Integer pid;
    /**
     * 文件名
     */
    private String name;
    /**
     * 文件地址
     */
    private String path;
    /**
     * 文件大小
     */
    private Double size;
    /**
     * 课程时长，单位秒
     */
    private Integer seconds;
    /**
     * 类型,0内容
     */
    private Integer type;
    /**
     * 租户编码
     */
    private String teamCode = BaseTeamEnum.BASE.getValue();

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;


}
